from django.conf import settings

from meercat.ui.client import Client

def getConfiguredClient():
    return Client(solrDefaultParams=settings.MEERCAT_SOLR_DEFAULT_PARAMETERS,
                  solrForcedParams=settings.MEERCAT_SOLR_FORCED_PARAMETERS,
                  solrParams={'url': settings.MEERCAT_SOLR_URL},
                  restParams={'url': settings.MEERCAT_REST_URL})

query = getConfiguredClient().query
getResource = getConfiguredClient().getResource
